Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable uploads to ghcr.io, upload binaries to github #4368

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

casibbald
Copy link
Collaborator

@casibbald casibbald commented Jan 2, 2025

Closes

What changed?

  • Container Images will be published via free ghcr.io
  • Containers will be signed with cosign
  • Validate signed containers
  • Binaries will be uploaded to GitHub
  • Binaries will be signed with the new weaveworks.org GPG signature
  • Validate signed binaries
  • Generate and socialise release note draft

Why was this change made?

  • Publishing via ghcr.io is necessary due to no commercial funding
  • Images need to be signed with the new [email protected] GPG key as necessary in the switch to a community project

How was this change implemented?

How did you validate the change?

Release notes

Documentation Changes

@casibbald casibbald requested a review from erikgb January 2, 2025 17:51
# run: |
# docker load --input /tmp/${{ matrix.docker-image }}.tar
# docker push "${{ env.CI_CONTAINER_REPOSITORY }}/${{ matrix.docker-image }}:${{ needs.ci-generate-tag.outputs.tag }}"
- name: Login to ghcr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Login to ghcr
- name: Login to GHCR

# docker push "${{ env.CI_CONTAINER_REPOSITORY }}/${{ matrix.docker-image }}:${{ needs.ci-generate-tag.outputs.tag }}"
- name: Login to ghcr
run: echo ${{ secrets.WEAVE_GITOPS_BOT_ACCESS_TOKEN }} | docker login ghcr.io -u weaveworks --password-stdin
- name: Push images to gcloud
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Push images to gcloud
- name: Push images to GHCR

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikgb
${{ secrets.WEAVE_GITOPS_BOT_ACCESS_TOKEN }}
I think we need to use this token

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope not. I think we should try to be as much key/secret less as possible. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants